package com.woniuxy.action;

import com.opensymphony.xwork2.ActionSupport;
import com.woniuxy.util.PageUtil;

public class PageActon extends ActionSupport{
	
	private int page;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}
	
	public String lastPage(){
		PageUtil.getIntance().setPage(page--);
		return SUCCESS;
	}
	
	public String nextPage(){
		PageUtil.getIntance().setPage(page++);
		return SUCCESS;
	}
}
